package cn.haiway.drools.service;

import cn.haiway.drools.pojo.Variable;
import cn.haiway.drools.respository.VariableRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class VariableService  {

    @Autowired
    private VariableRepository variableRepository;

    public Variable save(Variable variable) {
        log.debug("Request to save RuleVariable : {}", variable);
        return variableRepository.save(variable);
    }
}
